import 'package:flutter/material.dart';
import 'package:wechat/common/wechat_item.dart';
import 'package:wechat/common/touch_callback.dart';

class Personal extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      body: ListView(
        children: <Widget>[
          Container(
            margin: EdgeInsets.only(top: 20),
            color: Colors.white,
            height: 80,
            child: TouchCallBack(
                child: Row(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  children: <Widget>[
                    Container(
                      margin: EdgeInsets.only(left: 12, right: 15),
                      child: Image.network(
                        'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1550117055293&di=4229b8ca366f289ebfdba89026289dac&imgtype=0&src=http%3A%2F%2Fbcs.91.com%2Fpcsuite-dev%2Fimg%2F0%2F512_512%2F0452753ce72aa5018164715414629656.png',
                        width: 70,
                        height: 70,
                      ),
                    ),
                    Expanded(
                        child: Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: <Widget>[
                        Text(
                          '图图',
                          style:
                              TextStyle(fontSize: 18, color: Color(0xff353535)),
                        ),
                        Text(
                          '微信号：',
                          style:
                              TextStyle(fontSize: 14, color: Color(0xffa9a9a9)),
                        ),
                      ],
                    )),
                    Container(
                      margin: EdgeInsets.only(left: 12, right: 15),
                      child: Image.asset(
                        'images/a_5.png',
                        width: 24,
                        height: 24,
                      ),
                    )
                  ],
                ),
                onPressed: () {}),
          ),
          Container(
            margin: EdgeInsets.only(top: 20),
            color: Colors.white,
            child: WeChatItem(
              title: '钱包',
              imagePath: 'images/akd.png',
            ),
          ),
          Container(
            margin: EdgeInsets.only(top: 20),
            color: Colors.white,
            child: Column(
              children: <Widget>[
                WeChatItem(
                  title: '卡包',
                  imagePath: 'images/akc.png',
                ),
                Padding(
                  padding: const EdgeInsets.only(left: 15, right: 15),
                  child: Divider(
                    height: 0.5,
                    color: Color(0xffd9d9d9),
                  ),
                ),
                WeChatItem(
                  title: '相册',
                  imagePath: 'images/akb.png',
                ),
                Padding(
                  padding: const EdgeInsets.only(left: 15, right: 15),
                  child: Divider(
                    height: 0.5,
                    color: Color(0xffd9d9d9),
                  ),
                ),
                WeChatItem(
                  title: '设置',
                  imagePath: 'images/akf.png',
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
